import { _decorator, Component, Node, ProgressBar } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('testPrigress')
export class testPrigress extends Component {
    @property(ProgressBar)
    mProgress: ProgressBar = null;
    private nTest = 0;
    start() {
        this.mProgress.progress = 0.6;
    }

    update(deltaTime: number) {
        // var progress = this.mProgress.progress;
        // if (progress > 0) {
        //     progress += deltaTime;
        // }
        // else {
        //     progress = 1;
        // }
        // this.mProgress.progress = progress;
    }
}


